package view;

import com.fasterxml.jackson.annotation.JsonProperty;

public class DSTServerProcessView {
    @JsonProperty("state")
    public int state;
    @JsonProperty("inited")
    public int inited;
    @JsonProperty("archive_id")
    public String archiveID;
    @JsonProperty("player_num")
    public int playerNum;
    @JsonProperty("mem_usage_size")
    Long memUsageSize;
    @JsonProperty("mem_usage_ratio")
    double memUsageRatio;
    @JsonProperty("cpu_usage")
    Long cpuUsage;
    @JsonProperty("tag")
    String tag;
    @JsonProperty("cpu_limit")
    String cpu_limit;
    @JsonProperty("memry_limit")
    String memry_limit;
    @JsonProperty("swap_limit")
    String swap_limit;
    @JsonProperty("minutes_since_last_time_without_player")
    private Long minutesNoPlayer = -1L;
    

    public Long getMinutesNoPlayer() {
        return minutesNoPlayer;
    }


    public void setMinutesNoPlayer(Long minutesNoPlayer) {
        this.minutesNoPlayer = minutesNoPlayer;
    }


    public DSTServerProcessView(int state, int inited, 
        String archiveID, int playerNum, Long memUsageSize, double memUsageRatio, Long cpuUsage, 
        String tag,
        String cpu_limit, String memry_limit, String swap_limit) {
        this.state = state;
        this.inited = inited;
        this.archiveID = archiveID;
        this.playerNum = playerNum;
        this.memUsageSize = memUsageSize;
        this.memUsageRatio = memUsageRatio;
        this.cpuUsage = cpuUsage;
        this.tag = tag;
        this.cpu_limit = cpu_limit;
        this.memry_limit = memry_limit;
        this.swap_limit = swap_limit;
    }
}
